<template>
        <div class="cart-header">
            <span class="iconfont text" @click="back">&#xe601;</span>
            <span class="text2">购物车</span>
            <span class="iconfont text">&#xe62b;</span>
    </div>
</template>

<script>
export default {
  methods: {
    back () {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="less" scoped>
.cart-header{
        width: 100%;
        height: 1rem;
        border-bottom: 1px solid #F7F8F8;
        line-height: 1.2rem;
        display: flex;
        text-align: center;
        .text{
            width: 10%;
        }
        .text2{
            width: 80%;
        }
    }
</style>
